import Home from "pages/Home"
import Login from "pages/Login"
import Register from "pages/Register"
import Search from "pages/Search"

 const routes=[
    {path:"/Home",component:Home,},
    {path:"/Login",component:Login,meta:{hideFooter:true}},
    {path:"/Register",component:Register,meta:{hideFooter:true}},
    {
       name:"Search",
       path:"/Search/:keyword?",
       component:Search,
       props:(route)=>{
          return{
             keyword:route.params.keyword,
             categoryName:route.query.categoryName,
             category1Id:route.query.category1Id,
             category2Id:route.query.category2Id,
             category3Id:route.query.category3Id
          }
       }
    },

    {path:"/",redirect:"/Home"}
]
export default routes;